package org.spark.sql.scala.imooc

import org.apache.spark.sql.hive.HiveContext
import org.spark.sparkUtil.SparkScalaContextUtil

/**
  * 功能概述:HiveContext的使用
  * Datetime:    2020/6/4   20:27
  * Author:   某人的目光
  */
object HiveContextApp {
  def main(args: Array[String]): Unit = {
    //1)创建相应的Context
    val sc = SparkScalaContextUtil.getSparkStart("HiveContextApp");

    val hiveContext = new HiveContext(sc)

    //2)相关的处理: json
    hiveContext.table("epm").show()

  }

}
